<!DOCTYPE html>
<html>

<head>
    <title>Modify axis, legend, and plot labels</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <link rel="stylesheet" type="text/css" href="https://mzkit.org/assets/js/page.css">
</head>

<body>
    <div class="container">

        <table style="width: 100%;">
            <tr>
                <td>labs {ggplot2}</td>
                <td style="text-align: right;">R Documentation</td>
            </tr>
        </table>

        <h2>Modify axis, legend, and plot labels</h2>

        <h3>Description</h3>

        <p><br /> Good labels are critical for making your plots accessible to <br /> a wider audience. Always ensure the axis and legend labels <br /> display the full variable name. Use the plot title and subtitle <br /> to explain the main findings. It's common to use the caption <br /> to provide information about the data source. tag can be used <br /> for adding identification tags to differentiate between multiple <br /> plots.</p>

        <h3>Usage</h3>

        <div style="width: 100%; padding-left: 3%; color: black;">
            <pre><code class='language-R' style="color: black; font-weight:normal;"><strong>labs</strong>(
    <i>x</i> = <span style='color: blue !important;'>NULL</span>,
    <i>y</i> = <span style='color: blue !important;'>NULL</span>,
    <i>title</i> = <span style='color: blue !important;'>NULL</span>,
    <i>subtitle</i> = <span style='color: blue !important;'>NULL</span>,
    <i>caption</i> = <span style='color: blue !important;'>NULL</span>,
    <i>tag</i> = <span style='color: blue !important;'>NULL</span>,
    <i>alt</i> = <span style='color: blue !important;'>NULL</span>,
    <i>alt.insight</i> = <span style='color: blue !important;'>NULL</span>,
    <i>...</i> = <span style='color: blue !important;'>NULL</span>);</code></pre>
        </div>

        <h3>Arguments</h3>

        <table>
            
<dt>x</dt>
<dd><p>[as string]</p></dd>


<dt>y</dt>
<dd><p>[as string]</p></dd>


<dt>title</dt>
<dd><p>The text for the title. [as string]</p></dd>


<dt>subtitle</dt>
<dd><p>The text For the subtitle For the plot which will be displayed 
 below the title. [as string]</p></dd>


<dt>caption</dt>
<dd><p>The text for the caption which will be displayed in the 
 bottom-right of the plot by default. [as string]</p></dd>


<dt>tag</dt>
<dd><p>The text for the tag label which will be displayed at the top-left 
 of the plot by default.</p></dd>


<dt>alt</dt>
<dd><p>Text used for the generation of alt-text for the plot. See 
 get<em>alt</em>text for examples.</p></dd>


<dt>alt.insight</dt>
<dd><p>-</p></dd>


<dt>args</dt>
<dd><p>A list of new name-value pairs. The name should be an aesthetic. [as list]</p></dd>

        </table>


        <h3 style="display: block;">Details</h3>

        <p>You can also set axis and legend labels in the individual scales 
 (using the first argument, the name). If you're changing other 
 scale options, this is recommended.
 
 If a plot already has a title, subtitle, caption, etc., And you want 
 To remove it, you can Do so by setting the respective argument To 
 NULL. For example, If plot p has a subtitle, Then p + labs(subtitle = NULL) 
 will remove the subtitle from the plot.</p>

        <h3 style="display: block">Authors</h3>

        SMRUCC genomics institute

        <h3>Value</h3>

        this function returns data object of type <a href="/vignettes/clr/ggplot/options/ggplotOption.html">ggplotOption</a>.<h4>clr value class</h4><ul><li><a href="/vignettes/clr/ggplot/options/ggplotOption.html">ggplotOption</a></li></ul>

        <h3 style="display: none;">Examples</h3>

        

        <hr />
        <div style="text-align: center;">[Package <em>ggplot2</em> version 1.0.0.0 <a
                href="../ggplot2.html">Index</a>]
        </div>
    </div>
</body>

<script type="text/javascript" src="https://mzkit.org/assets/js/R_syntax.js"></script>
<script type="text/javascript" src="https://mzkit.org/assets/js/highlights.js"></script>
<script type="text/javascript">r_highlights("example_r");</script>

</html>